package day15_tasks;

public class DemoTest {
    public static void main(String[] args) {
        IPlay play = new IPlay(){

            @Override
            public void playGame() {
                System.out.println("玩游戏");
            }
        };
        play.playGame();

        Zi z = new Zi();
        z.fun();

        Fun f = new Fun(){
            @Override
            public void fun(){
                System.out.println("抽象方法运行了哦，而且是匿名内部类那种");
            }
        };

        f.fun();
    }
}
